<template>
  <div class="scene-tree">
    <m-tree-node v-for="(item, index) in (treeData as any[])" :key="item.id" :nodeData="item" :index="index"/>
  </div>
</template>
<script lang="ts">

import SceneNode from './SceneNode.vue';
import { defineComponent, provide } from "vue";

export default defineComponent({
  name: 'scene-tree',
  components: {
	  'm-tree-node': SceneNode,
  },
  props: {
	  treeData: Array,
  },
  setup() {
    provide('sceneTree', this);
  }
});
</script>
